/* locore.s
 * 汇编启动文件
 */


.cpu cortex-m0
.thumb

/*16个中断，参考MM32L052启动文件*/
.word   0x20001000   /* 堆栈栈顶地址 */
.word   _reset       /* 1 复位 */
.word   bogus        /* 2 NMI */
.word   bogus        /* 3 Hard Fault */
.word   bogus        /* 4 RESERVED */
.word   bogus        /* 5 RESERVED */
.word   bogus        /* 6 RESERVED */
.word   bogus        /* 7   RESERVED */
.word   bogus        /* 8   RESERVED */
.word   bogus        /* 9   RESERVED*/
.word   bogus        /* 10  RESERVED */
.word   bogus        /* 11 SV call */
.word   bogus        /* 12   RESERVED */
.word   bogus        /* 13   RESERVED */
.word   bogus        /* 14 PendSV */
.word   systick_handler        /* 15 SysTick */

@ and now 68 IRQ vectors
.word	bogus		/* IRQ  0 Window Watchdog*/
.word	bogus		/* IRQ  1 PVD through EXTI Line detect*/
.word	bogus		/* IRQ  2 RTC through EXTI Line & Tamper*/
.word	bogus		/* IRQ  3 FLASH */
.word	bogus		/* IRQ  4 RCC & CRS*/
.word	bogus		/* IRQ  5 EXTI Line 0 and 1*/
.word	bogus		/* IRQ  6 EXTI Line 2 and 3*/
.word	bogus		/* IRQ  7 EXTI Line 4 to 15*/
.word	bogus		/* IRQ  8 Reserved*/
.word	bogus		/* IRQ  9 DMA1 Channel 1*/
.word	bogus		/* IRQ 10 DMA1 Channel 2 and Channel 3*/
.word	bogus		/* IRQ 11 DMA1 Channel 4 and Channel 5*/
.word	bogus		/* IRQ 12 ADC1 & COMP*/
.word	bogus		/* IRQ 13 TIM1 Break, Update, Trigger and Commutation*/
.word	bogus		/* IRQ 14 TIM1 Capture Compare*/
.word	bogus		/* IRQ 15 TIM2*/
.word	bogus		/* IRQ 16 TIM3*/
.word	bogus		/* IRQ 17 Reserved*/
.word	bogus		/* IRQ 18 Reserved*/
.word	bogus	    /* IRQ 19 TIM14*/
.word	bogus	    /* IRQ 20 Reserved*/
.word	bogus		/* IRQ 21 TIM16*/
.word	bogus		/* IRQ 22 TIM17*/
.word	bogus		/* IRQ 23 I2C1*/
.word	bogus		/* IRQ 24 Reserved*/
.word	bogus		/* IRQ 25 SPI1 */
.word	bogus		/* IRQ 26 SPI2 */
.word	bogus		/* IRQ 27 UART1 */
.word	bogus	    /* IRQ 28 UART2 */
.word	bogus		/* IRQ 29 AES */
.word	bogus		/* IRQ 30 CAN */
.word	bogus		/* IRQ 31 USB*/


.thumb_func
bogus:   b .

.thumb_func
_reset:
    bl startup
    b .

/* THE END */
